package cn.itcast.demo.dao;

import cn.itcast.demo.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @Author: taft
 * @Date: 2018-12-11 11:39
 */
@Component
public class UserFeignClientFallback implements UserFeignClient {
    @Override
    public User queryUserById(Long id) {
        User user = new User();
        user.setId(id);
        user.setPassword("使用feign请求过程中远程服务在指定的时间没有响应");
        return user;
    }
}
